package com.appkubes.fintech.restful.application.rent.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * @description: 账单状态
 * @author: xqc
 * @date: 2020/1/2 15:44
 * @params:
 * @return:
 */
public enum RentRePayOrderEnums {
	//状态 00未支付 01支付成功 02还款成功 03支付失败 04 还款失败
	未支付("00", "未支付"),
	支付中("01", "支付中"),
	支付成功("02", "支付成功"),
	还款成功("03", "还款成功"),
	支付失败("04","支付失败"),
	还款失败("05","还款失败");


	private static Map<String, RentRePayOrderEnums> codeMap;
	private String value;
	private String name;

	static { codeMap = new HashMap();
		for (RentRePayOrderEnums code : values()){
			codeMap.put(code.getValue(), code);
		}
	}

	public static RentRePayOrderEnums codeOf(String code)
	{
		return (RentRePayOrderEnums)codeMap.get(code);
	}

	private RentRePayOrderEnums(String value, String name)
	{
		this.value = value;
		this.name = name;
	}

	public String getValue() {
		return this.value;
	}

	public String getName() {
		return this.name;
	}
}
